// JavaScript Document
$(function () {
    /*登陆*/
    $("#sugSubmit").click(function () {
        var sugContent = $('#sugContent').val();
        var sugPhone = $('#sugPhone').val();
        $("#sugFeedBackMsg").html('');
        if (sugContent.length != 0) {
            //ajax----------------------
            $.post("sug.do", {
                'content': sugContent,
                'phone': sugPhone
            }, function (data) {
                if (data == 1) {
                    $("#sugFeedBackMsg").html('提交成功');
                    document.getElementById('sugContent').value = '';
                } else {
                    $("#sugFeedBackMsg").html('网络忙,稍后重试!');
                }
            });
            //----------------------
        } else {
            $("#sugFeedBackMsg").html('请输入信息!');
        }
    });
});